package com.kehutong.employee.entity;

import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;

import java.util.List;

@Table(value="t_position_department", comment="职务", multi=true)
public class PositionDepartment extends Entity {

	private static final long serialVersionUID = 1734688661607403126L;

	protected PositionDepartment(String id) {
		super(id);
	}

	@Column(dbType = "TEXT", comment = "管理的部门")
	private List<String> departmentNos;

	@Column(comment = "员工ID")
	private String userId;

	@Column(comment = "职务编号")
	private String positionId;

	@JSONField(serialize = false)
	@Column(comment = "逻辑删除")
	private boolean deleted;

	public List<String> getDepartmentNos() {
		return departmentNos;
	}

	public void setDepartmentNos(List<String> departmentNos) {
		this.departmentNos = departmentNos;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPositionId() {
		return positionId;
	}

	public void setPositionId(String positionId) {
		this.positionId = positionId;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}
}